package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author melon
 * @since 2023-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("capital_account")
@ApiModel(value="CapitalAccount对象", description="")
public class CapitalAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("account_name")
    private String accountName;

    @TableField("account_key")
    private String accountKey;

    @TableField("account_icon")
    private String accountIcon;

    @TableField("account_sort")
    private Integer accountSort;

    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "子级")
    @TableField(exist = false)
    private List<CapitalAccount> children;
}
